package com.shop.shoporder.service.impl;

import com.shop.shoporder.entity.GoodsBanner;
import com.shop.shoporder.mapper.GoodsBannerMapper;
import com.shop.shoporder.service.GoodsBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("goodsBannerService")
public class GoodsBannerServiceImpl implements GoodsBannerService {

    @Autowired
    GoodsBannerMapper goodsBannerMapper;

    @Override
    public int deleteByPrimaryKey(Integer bannerId) {
        return goodsBannerMapper.deleteByPrimaryKey(bannerId);
    }

    @Override
    public int insert(GoodsBanner record) {
        return goodsBannerMapper.insert(record);
    }

    @Override
    public int insertSelective(GoodsBanner record) {
        return goodsBannerMapper.insertSelective(record);
    }

    @Override
    public GoodsBanner selectByPrimaryKey(Integer bannerId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(GoodsBanner record) {
        return goodsBannerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GoodsBanner record) {
        return goodsBannerMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GoodsBanner> getBanners() {
        return goodsBannerMapper.getBanners();
    }
}
